package com.restaurantonlineorder.seller.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.restaurantonlineorder.seller.domain.HorsemanOrder;
import com.restaurantonlineorder.seller.mapper.HorsemanOrderMapper;
import com.restaurantonlineorder.seller.service.IHorsemanOrderService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author 熊宇
 * @date 2022/7/24 17:29
 * @description 骑手订单 实现类
 */
@Service
public class HorsemanOrderServiceImpl extends ServiceImpl<HorsemanOrderMapper, HorsemanOrder> implements IHorsemanOrderService {

    @Override
    @Transactional(rollbackFor = RuntimeException.class)
    public boolean createHorsemanOrder(HorsemanOrder horsemanOrder) {
        return this.save(horsemanOrder);
    }
}
